package com.learn.spring.reactor8;

import java.util.Observable;

public class ObserverDemo extends Observable {

    public int number = 0;


    public void addNumber() {
        number++;
        setChanged();
        notifyObservers(number);
    }


}
